package com.tengju.support.infrastructure.config;

import com.ctrip.framework.apollo.openapi.client.ApolloOpenApiClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApolloOpenApiConfig {
    public static final String portalUrl = "http://apollo.acg.team/";
    public static final String token = "2a39d51bfc945ced7cb361b08d9bf17fab941d1a";


    @Bean
    public ApolloOpenApiClient apolloOpenApiClient() {
        return ApolloOpenApiClient.newBuilder().withPortalUrl(portalUrl)
                .withToken(token).build();
    }
}
